﻿using System;
using System.Windows.Messaging;

namespace Remoting.Reactive.Windowing
{
    internal sealed class SendCompleted : ISendCompleted
    {
        private readonly SendCompletedEventArgs _eventArgs;

        public SendCompleted(SendCompletedEventArgs eventArgs)
        {
            Guard.Requires<ArgumentNullException>(eventArgs != null);
            _eventArgs = eventArgs;
        }

        public string Message
        {
            get { return _eventArgs.Message; }
        }

        public string ReceiverName
        {
            get { return _eventArgs.ReceiverName; }
        }

        public string ReceiverDomain
        {
            get { return _eventArgs.ReceiverDomain; }
        }

        public string Response
        {
            get { return _eventArgs.Response; }
        }
    }
}
